<%-- 
    Document   : logout
    Created on : Jul 14, 2009, 2:20:25 PM
    Author     : suporte
--%>

<%@page import="org.madmac.conn.Conn"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<html>
   <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <title>Log Out</title>
   </head>
   <body>
      <%
		try {
			Conn.closeConnection();
			session.removeAttribute("usuario");
			session = null;
			response.sendRedirect("/madmac/login/login.jsp?status=logout");
		} catch (Exception e) {
			session.removeAttribute("usuario");
			session = null;
			response.sendRedirect("/madmac/login/login.jsp?status=logout");
		}
      %>
   </body>
</html>
